Adwaita: osd progressbar fixes
authorLapo Calamandrei <calamandrei@gmail.com>
Sat, 13 Sep 2014 14:20:44 +0000 (16:20 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Sat, 13 Sep 2014 14:21:37 +0000 (16:21 +0200)
See https://bugzilla.gnome.org/show_bug.cgi?id=735959

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index 76fcb82320e8455e41afe1e8585c56be87143dc3..a63ba505812565a274b2050a3afad93be659448d 100644 (file)
@@ -2043,15 +2043,20 @@ $asset_suffix: if($variant=='dark', '-dark', '');
  *****************/
 
 GtkProgressBar {
-    padding: 0;
-    font-size: smaller;
-    color: transparentize($fg_color, 0.6);
-    box-shadow: inset 1px 1px transparentize(black, 0.9), // needs to be set
-                _widget_edge();                           // here ot it gets
-                                                          // clipped
-    &:backdrop {
-      color: $backdrop_insensitive_color;
-    }
+  padding: 0;
+  font-size: smaller;
+  color: transparentize($fg_color, 0.6);
+  box-shadow: inset 1px 1px transparentize(black, 0.9), // needs to be set
+              _widget_edge();                           // here ot it gets
+                                                        // clipped
+  &:backdrop {
+    color: $backdrop_insensitive_color;
+  }
+  &.osd {
+    -GtkProgressBar-xspacing: 0;
+    -GtkProgressBar-yspacing: 0;
+    -GtkProgressBar-min-horizontal-bar-height: 3;
+  }
 }
 
 // moving bit
@@ -2091,11 +2096,10 @@ GtkProgressBar {
     box-shadow: none;
   }
   &.osd {
+    background-image: none;
+    background-color: $selected_bg_color;
     border-style: none;
     border-radius: 0;
-    -GtkProgressBar-xspacing: 0;
-    -GtkProgressBar-yspacing: 2px;
-    -GtkProgressBar-min-horizontal-bar-height: 2px; //FIXME still too tall
   }
 }
 
index 3bd93d5c83eeb7d45f26ded57882ae0e00b6f6b0..3d1d30d7073a791a3b6013b7c2670845a5bec4b6 100644 (file)
@@ -3235,6 +3235,10 @@ GtkProgressBar {
   box-shadow: inset 1px 1px rgba(0, 0, 0, 0.1), 0 1px rgba(238, 238, 236, 0.1); }
   GtkProgressBar:backdrop {
     color: #5d6767; }
+  GtkProgressBar.osd {
+    -GtkProgressBar-xspacing: 0;
+    -GtkProgressBar-yspacing: 0;
+    -GtkProgressBar-min-horizontal-bar-height: 3; }
 
 .progressbar {
   background-image: linear-gradient(to bottom, #215d9c 2px, #266cb5);
@@ -3264,11 +3268,10 @@ GtkProgressBar {
     background-color: #215d9c;
     box-shadow: none; }
   .progressbar.osd {
+    background-image: none;
+    background-color: #215d9c;
     border-style: none;
-    border-radius: 0;
-    -GtkProgressBar-xspacing: 0;
-    -GtkProgressBar-yspacing: 2px;
-    -GtkProgressBar-min-horizontal-bar-height: 2px; }
+    border-radius: 0; }
 
 GtkProgressBar.trough {
   border: 1px solid #1c1f1f;
index 20cb00da25fd1fa64ca39780d04d3a2383a93394..0c4d7f3e7640d4fd1ca36ce447b1570042e0a1d6 100644 (file)
@@ -3385,6 +3385,10 @@ GtkProgressBar {
   box-shadow: inset 1px 1px rgba(0, 0, 0, 0.1), 0 1px white; }
   GtkProgressBar:backdrop {
     color: #c7c7c7; }
+  GtkProgressBar.osd {
+    -GtkProgressBar-xspacing: 0;
+    -GtkProgressBar-yspacing: 0;
+    -GtkProgressBar-min-horizontal-bar-height: 3; }
 
 .progressbar {
   background-image: linear-gradient(to bottom, #4a90d9 2px, #63a0de);
@@ -3414,11 +3418,10 @@ GtkProgressBar {
     background-color: #4a90d9;
     box-shadow: none; }
   .progressbar.osd {
+    background-image: none;
+    background-color: #4a90d9;
     border-style: none;
-    border-radius: 0;
-    -GtkProgressBar-xspacing: 0;
-    -GtkProgressBar-yspacing: 2px;
-    -GtkProgressBar-min-horizontal-bar-height: 2px; }
+    border-radius: 0; }
 
 GtkProgressBar.trough {
   border: 1px solid #a1a1a1;